home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
SBF3.ZIP
/
SBMIDI.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-05
|
298b
|
19 lines
#include <stdio.h>
#include <dos.h>
#include "sb.h"
int Sb_Read_MIDI(void)
{
writedac(MIDI_READ_POLL);
while(!(inportb(DSP_DATA_AVAIL) & 0x80))
;
return inportb(DSP_READ_DATA);
}
void Sb_Write_MIDI(int data)
{
writedac(MIDI_WRITE_POLL);
writedac(data);
}